home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / audio-fmts / part1 < prev    next >
Text File  |  1994-03-11  |  48KB  |  1,097 lines

  1. Newsgroups: alt.binaries.sounds.misc,alt.binaries.sounds.d,comp.dsp,alt.answers,comp.answers,news.answers
  2. Path: bloom-beacon.mit.edu!hookup!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sun4nl!cwi.nl!guido
  3. From: guido@cwi.nl (Guido van Rossum)
  4. Subject: FAQ: Audio File Formats (part 1 of 2)
  5. Message-ID: <audio-part1_761913666@charon.cwi.nl>
  6. Followup-To: alt.binaries.sounds.d,comp.dsp
  7. Sender: news@cwi.nl (The Daily Dross)
  8. Supersedes: <audio-part1_759445072@charon.cwi.nl>
  9. Nntp-Posting-Host: voorn.cwi.nl
  10. Reply-To: guido@cwi.nl
  11. Organization: CWI, Amsterdam
  12. Date: Tue, 22 Feb 1994 10:41:10 GMT
  13. Approved: news-answers-request@MIT.Edu
  14. Expires: Tue, 22 Mar 1994 10:41:06 GMT
  15. Lines: 1079
  16. Xref: bloom-beacon.mit.edu alt.binaries.sounds.misc:13671 alt.binaries.sounds.d:3312 comp.dsp:5169 alt.answers:1927 comp.answers:3869 news.answers:15528
  17.  
  18. Archive-name: audio-fmts/part1
  19. Submitted-by: Guido van Rossum <guido@cwi.nl>
  20. Version: 3.08
  21. Last-modified: 22-Feb-1994
  22.  
  23. FAQ: Audio File Formats
  24. =======================
  25.  
  26. Table of contents
  27. -----------------
  28.  
  29. Introduction
  30. Device characteristics
  31. Popular sampling rates
  32. Compression schemes
  33. Current hardware
  34. File formats
  35. File conversions
  36. Playing audio files on UNIX
  37. Playing audio files on micros
  38. The Sound Site Newsletter
  39. Posting sounds
  40.  
  41. Appendices (in part 2):
  42.  
  43. FTP access for non-internet sites
  44. AIFF Format (Audio IFF)
  45. The NeXT/Sun audio file format
  46. IFF/8SVX Format
  47. Playing sound on a PC
  48. The EA-IFF-85 documentation
  49. US Federal Standard 1016 availability
  50. Creative Voice (VOC) file format
  51. RIFF WAVE (.WAV) file format
  52. U-LAW and A-LAW definitions
  53. AVR File Format
  54. The Amiga MOD Format
  55.  
  56.  
  57. Introduction
  58. ------------
  59.  
  60. This is version 3 of this FAQ, which I started in November 1991 under
  61. the name "The audio formats guide".  I bumped the major version number
  62. again at the occasion of the split in two parts: part one is the main
  63. text and part two consists of the collection of appendices.
  64.  
  65. I am posting this about once a fortnight, either unchanged (just to
  66. inform new readers), or updated (if I learn more or when new hardware
  67. or software becomes popular).  I post to alt.binaries.sounds.{misc,d}
  68. and to comp.dsp, for maximal coverage of people interested in audio,
  69. and to {news,comp}.answers, for easy reference.
  70.  
  71. The entire FAQ is also available by anonymous ftp from ftp.cwi.nl
  72. [192.16.184.180], directory pub/audio, files AudioFormats.{part1,part2}.
  73.  
  74. BTW: All FAQs, including this one, are available for anonymous ftp on
  75. the archive site rtfm.mit.edu in directory /pub/usenet/news.answers/.
  76. The name under which a FAQ is archived appears in the "Archive-Name:"
  77. line at the top of the article.  This FAQ is archived as
  78. audio-fmts/part[12].
  79.  
  80. A companion posting with subject "Changes to: ..." is occasionally
  81. posted listing the diffs between a new version and the last.  This is
  82. not reposted, and it is suppressed when the diffs are bigger than the
  83. new version.
  84.  
  85. Send updates, comments and questions to <guido@cwi.nl>.  I'd like to
  86. thank everyone who sent updates in the past.
  87.  
  88. --Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
  89.  
  90.  
  91. Device characteristics
  92. ----------------------
  93.  
  94. In this text, I will only use the term "sample" to refer to a single
  95. output value from an A/D converter, i.e., a small integer number
  96. (usually 8 or 16 bits).
  97.  
  98. Audio data is characterized by the following parameters, which
  99. correspond to settings of the A/D converter when the data was
  100. recorded.  Naturally, the same settings must be used to play the data.
  101.  
  102. - sampling rate (in samples per second), e.g. 8000 or 44100
  103.  
  104. - number of bits per sample, e.g. 8 or 16
  105.  
  106. - number of channels (1 for mono, 2 for stereo, etc.)
  107.  
  108. Approximate sampling rates are often quoted in Hz or kHz ([kilo-]
  109. Hertz), however, the politically correct term is samples per second
  110. (samples/sec).  Sampling rates are always measured per channel, so for
  111. stereo data recorded at 8000 samples/sec, there are actually 16000
  112. samples in a second.  I will sometimes write 8 k as a shorthand for
  113. 8000 samples/sec.
  114.  
  115. Multi-channel samples are generally interleaved on a frame-by-frame
  116. basis: if there are N channels, the data is a sequence of frames,
  117. where each frame contains N samples, one from each channel.  (Thus,
  118. the sampling rate is really the number of *frames* per second.)  For
  119. stereo, the left channel usually comes first.
  120.  
  121. The specification of the number of bits for U-LAW (pronounced mu-law
  122. -- the u really stands for the Greek letter mu) samples is somewhat
  123. problematic.  These samples are logarithmically encoded in 8 bits,
  124. like a tiny floating point number; however, their dynamic range is
  125. that of 12 bit linear data.  Source for converting to/from U-LAW
  126. (written by Jef Poskanzer) is distributed as part of the SOX package
  127. mentioned below; it can easily be ripped apart to serve in other
  128. applications.  The official definition is the CCITT standard G.711.
  129.  
  130. There exists another encoding similar to U-LAW, called A-LAW, which
  131. is used as a European telephony standard.  There is less support for
  132. it in UNIX workstations.
  133.  
  134. (See the Appendix for some formulae describing U-LAW and A-LAW.)
  135.  
  136.  
  137. Popular sampling rates
  138. ----------------------
  139.  
  140. Some sampling rates are more popular than others, for various reasons.
  141. Some recording hardware is restricted to (approximations of) some of
  142. these rates, some playback hardware has direct support for some.  The
  143. popularity of divisors of common rates can be explained by the
  144. simplicity of clock frequency dividing circuits :-).
  145.  
  146. Samples/sec     Description
  147.  
  148. 5500            One fourth of the Mac sampling rate (rarely seen).
  149.  
  150. 7333            One third of the Mac sampling rate (rarely seen).
  151.  
  152. 8000            Exactly 8000 samples/sec is a telephony standard that
  153.                 goes together with U-LAW (and also A-LAW) encoding.
  154.                 Some systems use an slightly different rate; in
  155.                 particular, the NeXT workstation uses 8012.8210513,
  156.                 apparently the rate used by Telco CODECs.
  157.  
  158. 11 k            Either 11025, a quarter of the CD sampling rate,
  159.                 or half the Mac sampling rate (perhaps the most
  160.                 popular rate on the Mac).
  161.  
  162. 16000           Used by, e.g. the G.722 compression standard.
  163.  
  164. 18.9 k          CD-ROM/XA standard.
  165.  
  166. 22 k            Either 22050, half the CD sampling rate, or the Mac
  167.                 rate; the latter is precisely 22254.545454545454 but
  168.                 usually misquoted as 22000.  (Historical note:
  169.                 22254.5454... was the horizontal scan rate of the
  170.                 original 128k Mac.)
  171.  
  172. 32000           Used in digital radio, NICAM (Nearly-Instantaneous
  173.                 Companded Audio Multiplex [IBA/BREMA/BBC]) and other
  174.                 TV work, at least in the UK; also long play DAT and
  175.                 Japanese HDTV.
  176.  
  177. 37.8 k          CD-ROM/XA standard for higher quality.
  178.  
  179. 44056           This weird rate is used by professional audio
  180.                 equipment to fit an integral number of samples in a
  181.                 video frame.
  182.  
  183. 44100           The CD sampling rate.  (DAT players recording
  184.                 digitally from CD also use this rate.)
  185.  
  186. 48000           The DAT (Digital Audio Tape) sampling rate for
  187.                 domestic use.
  188.  
  189. Files samples on SoundBlaster hardware have sampling rates that are
  190. divisors of 1000000.
  191.  
  192. While professinal musicians disagree, most people don't have a problem
  193. if recorded sound is played at a slightly different rate, say, 1-2%.
  194. On the other hand, if recorded data is being fed into a playback
  195. device in real time (say, over a network), even the smallest
  196. difference in sampling rate can frustrate the buffering scheme used...
  197.  
  198. There may be an emerging tendency to standardize on only a few
  199. sampling rates and encoding styles, even if the file formats may
  200. differ.  The suggested rates and styles are:
  201.  
  202.     rate (samp/sec) style mono/stereo
  203.  
  204.     8000 8-bit U-LAW mono
  205.     22050 8-bit linear unsigned mono and stereo
  206.     44100 16-bit linear signed mono and stereo
  207.  
  208.  
  209. Compression schemes
  210. -------------------
  211.  
  212. Strange though it seems, audio data is remarkably hard to compress
  213. effectively.  For 8-bit data, a Huffman encoding of the deltas between
  214. successive samples is relatively successful.  For 16-bit data,
  215. companies like Sony and Philips have spent millions to develop
  216. proprietary schemes.  Information about PASC (Philips' scheme) can be
  217. found in Advanced Digital Audio by Ken C. Pohlmann.
  218.  
  219. Public standards for voice compression are slowly gaining popularity,
  220. e.g. CCITT G.721 (ADPCM at 32 kbits/sec) and G.723 (ADPCM at 24 and 40
  221. kbits/sec).  (ADPCM == Adaptive Delta Pulse Code Modulation.)  Sun
  222. Microsoft has placed the source code of a portable implementation of
  223. these algorithms (as well as G.711, which defines A-LAW and U-LAW) in
  224. the public domain (needless to say, their proprietary implementation
  225. distributed in binary form with Solaris is better :-).  One place to
  226. ftp this source code from is ftp.cwi.nl:/pub/audio/ccitt-adpcm.tar.Z.
  227. Source for another 32 kbits/sec ADPCM implementation, assumed to be
  228. compatible with Intel's DVI audio format, can be ftp'ed from
  229. ftp.cwi.nl:/pub/audio/adpcm.shar.  (** NOTE: if you are using v1.0,
  230. you should get v1.1, released 17-Dec-1992, which fixes a serious bug
  231. -- the quality of v1.1 is claimed to be better than U-LAW **)
  232.  
  233. GSM 06.10 is a speech encoding in use in Europe that compresses 160
  234. 13-bit samples into 260 bits (or 33 bytes), i.e. 1650 bytes/sec (at
  235. 8000 samples/sec).  A free implementation can be ftp'ed from
  236. tub.cs.tu-berlin.de, file /pub/tubmik/gsm-1.0.tar.Z.
  237.  
  238. There are also two US federal standards, 1016 (Code excited linear
  239. prediction (CELP), 4800 bits/s) and 1015 (LPC-10E, 2400 bits/s).  See
  240. also the appendix for 1016.
  241.  
  242. Tony Robinson <ajr@eng.cam.ac.uk> has written a good FAST loss-less
  243. compression for lots of different audio formats (particularly good for
  244. WAV and MOD files).  The software is available by anonymous ftp from
  245. svr-ftp.eng.cam.ac.uk [129.169.24.20], directory misc, file
  246. shorten-1.08.tar.Z.
  247.  
  248. (Note that U-LAW and silence detection can also be considered
  249. compression schemes.)
  250.  
  251. Here's a note about audio codings by Van Jacobson <van@ee.lbl.gov>:
  252. Several people used the words "LPC" and "CELP" interchangably.  They
  253. are very different.  An LPC (Linear Predictive Coding) coder fits
  254. speech to a simple, analytic model of the vocal tract, then throws
  255. away the speech & ships the parameters of the best-fit model.  An LPC
  256. decoder uses those parameters to generate synthetic speech that is
  257. usually more-or-less similar to the original.  The result is
  258. intelligible but sounds like a machine is talking.  A CELP (Code
  259. Excited Linear Predictor) coder does the same LPC modeling but then
  260. computes the errors between the original speech & the synthetic model
  261. and transmits both model parameters and a very compressed
  262. representation of the errors (the compressed representation is an
  263. index into a 'code book' shared between coders & decoders -- this is
  264. why it's called "Code Excited").  A CELP coder does much more work
  265. than an LPC coder (usually about an order of magnitude more) but the
  266. result is much higher quality speech: The FIPS-1016 CELP we're working
  267. on is essentially the same quality as the 32Kb/s ADPCM coder but uses
  268. only 4.8Kb/s (the same as the LPC coder).
  269.  
  270. The comp.compression FAQ has some text on the 6:1 audio compression
  271. scheme used by MPEG (a video compression standard-to-be).  It's
  272. interesting to note that video compression reaches much higher ratios
  273. (like 26:1).  This FAQ is ftp'able from rtfm.mit.edu [18.72.1.58] in
  274. directory /pub/usenet/news.answers/compression-faq, files part1 and
  275. part2.
  276.  
  277. Comp.compression also carries a regular posting "How to uncompress
  278. anything" by David Lemson <lemson@uiuc.edu>, which (tersely) hints on
  279. which program you need to uncompress a file whose name ends in .<foo>
  280. for almost any conceivable <foo>.  Ftp'able from ftp.cso.uiuc.edu
  281. (128.174.5.59) in the directory /doc/pcnet as the file compression.
  282.  
  283. Documentation on a digital cellular telephone system by Qualcomm Inc.
  284. can be ftp'ed from ftp.qualcomm.com:/pub/cdma; the vocoder is in
  285. appendix A.
  286.  
  287. Apple has an Audio Compression/Expansion scheme called ACE (on the GS)
  288. / MACE (on the Macintosh).  It's a lossy scheme that attempts to
  289. predict where the wave will go on the next sample. There's very little
  290. quality change on 8:4 compression, somewhat more for 8:3.  It does
  291. guarantee exactly 50% or 62.5% compression, though.  I believe MACE
  292. uses larger ratios/more loss, but I'm unsure of the specific numbers.
  293. (Marc Sira)
  294.  
  295.  
  296. Current hardware
  297. ----------------
  298.  
  299. I am aware of the following computer systems that can play back and
  300. (sometimes) record audio data, with their characteristics.  Note that
  301. for most systems you can also buy "professional" sampling hardware,
  302. which supports much better quality, e.g. >= 44.1 k 16 bits stereo.
  303. The characteristics listed here are a rough estimate of the
  304. capabilities of the basic hardware only (and even here I am on thin
  305. ice, with systems becoming ever more powerful).
  306.  
  307. machine             bits            max sampling rate    #output channels
  308.  
  309. Mac (all types)     8               22k                  1
  310. Mac (newer ones)    16              64k                  4(128)
  311. Apple IIgs          8               32k / >70k           16(st)
  312. PC/soundblaster pro 8               ?/(22k st, 44.1k mo) 1(st)
  313. PC/soundblaster 16  16              44.1k                1(st)
  314. PC/pas              8               44.1k st, 88.2k mo   1(st)
  315. PC/pas-16           16              44.1k st, 88.2k mo   1(st)
  316. PC/turtle beach multisound 16       44.1k                1(st)
  317. PC/cards with aria chipset 16       44.1k                1(st)
  318. PC/roland rap-10    16              44.1k                1(st)
  319. PC/gravis ultrasound 8/16           44.1k                14-32(st)
  320. Atari ST            8               22k                  1
  321. Atari STE,TT        8               50k                  2
  322. Atari Falcon 030    16              50k                  8(st)
  323. Amiga               8               varies above 29k     4(st)
  324. Sun Sparc           U-LAW           8k                   1
  325. Sun Sparcst. 10     U-LAW,8,16      48k                  1(st)
  326. NeXT                U-LAW,8,16      44.1k                1(st)
  327. SGI Indigo          8,16            48k                  4(st)
  328. SGI Indigo2,Indy    8,16            48k                  16(st,4-channel)
  329. Acorn Archimedes    ~U-LAW          ~180k                8(st)
  330. Sony NWS-3xxx       U,A,8,16        8-37.8k              1(st)
  331. Sony NWS-5xxx       U,A,8,16        8-48k                1(st)
  332. VAXstation 4000     U-LAW           8k                   1
  333. DEC 3000/300-500    U-LAW           8k                   1
  334. DEC 5000/20-25      U-LAW           8k                   1
  335. Tandy 1000/*L*      8               22k                  3
  336. Tandy 2500          8               22k                  3
  337. HP9000/705,710,425e U,A-LAW,16      8k                   1
  338. HP9000/715,725,735  U,A-LAW,16      48k                  1(st)
  339. HP9000/755 option:  U,A-LAW,16      48k                  1(st)
  340. NCD MCX terminal    U,A,8,16        52k                  1(st)
  341.  
  342. 4(st) means "four voices, stereo"; sampling rates xx/yy are
  343. different recording/playback rates; *L* is any type with 'L' in it.
  344.  
  345. All these machines can play back sound without additional hardware,
  346. although the needed software is not always standard; also, some
  347. machines need external hardware to record sound (or to record at
  348. higher quality, like the NeXT, whose built-in sampling hardware only
  349. does 8000 samples/sec in U-LAW).  Please don't send me details on
  350. optional or 3rd party hardware, there is too much and it is really
  351. beyond the scope of this FAQ.  In particular, there is a separate
  352. newsgroup devoted to PC sound cards: comp.sys.ibm.pc.soundcard, which
  353. includes FAQ of its own (also posted to comp.answers and news.answers).
  354.  
  355. The new VAXstation 4000 (VLC and model 60) series lets you PLAY audio
  356. (.au) files, and the package DECsound will let you do the recording.
  357. In fact, DECsound is given away free with Motif 1.1 and supports the
  358. VAXstation, Sun SPARCstation, DECvoice, and DECaudio devices.  Sun
  359. sound files work without change.  The Alpha systems (DEC 3000 Model
  360. 300, 400, 500) also have DECsound bundled with Motif.
  361.  
  362. Notes for the DECstation 5000/20-25: You need either XMedia tools from
  363. DEC ($$$$), or the AudioFile package (which works nicely) from
  364. crl.dec.com (see below). The audio device is "/dev/bba", you cannot
  365. send ".au" files directly to the device, the Xmedia/AF software
  366. provide an "audioserver" which must be run to play/record sounds.
  367.  
  368. The SGI Personal IRIS 4D/30 and 4D/35 have the same capabilities as
  369. the Indigo. The audio board was optional on the 4D/30.
  370. The Indigo2 and Indy features are a superset of the Indigo features.
  371.  
  372. The new Apple Macs have more powerful audio hardware; the latest
  373. models have built-in microphones.
  374.  
  375. Software exists for the PC that can play sound on its 1-bit speaker
  376. using pulse width modulation (see appendix); the Soundblaster board
  377. records at rates up to 13 k and plays back up to 22 k (weird
  378. combination, but that's the way it is).
  379.  
  380. Here's some info about the newest Atari machine, the Falcon030.  This
  381. machine has stereo 16 bit CODECs and a 32 MHz Motorola 56001 that can
  382. handle 8 channels of 16 bit audio, up to 50 khz/channel with
  383. simultaneous playback and record.  The Falcon DMA sound engine is also
  384. compatible with the 8 bit stereo DMA used on the STe and TT. All of
  385. these systems use signed data.
  386.  
  387. On the NeXT, the Motorola 56001 DSP chip is programmable and you can
  388. (in principle) do what you want.  The SGI Indigo uses the same DSP chip but
  389. it can't be programmed by users -- SGI prefers to offer it as a shared
  390. system resource to multiple applications, thus enabling developers to
  391. program audio with their Audio Library and avoid code modifications
  392. for execution on future machines with different audio hardware, i.e. a
  393. different DSP. For example, the Indigo2 and Indy do not have a DSP chip.
  394.  
  395. The Amiga also has a 6-bit volume, which can be used to produce
  396. something like a 14-bit output for each voice.  The hardware can also
  397. use one of each voice-pair to modulate the other in FM (period) or AM
  398. (volume, 6-bits).
  399.  
  400. The Acorn Archimedes uses a variation on U-LAW with the bit order
  401. reversed and the sign bit in bit 0.  Being a 'minority' architecture,
  402. Arc owners are quite adept at converting sound/image formats from
  403. other machines, and it is unlikely that you'll ever encounter sound in
  404. one of the Arc's own formats (there are several).
  405.  
  406. The NCD MCX terminal has audio integrated with its X server.  The
  407. NCDAudio server is an extension of the X server, working together with
  408. it, with stress on the networking capability of sound transmission.
  409. The NCDAudio API provides format handling (ULAW8, Linear Unsig 8,
  410. Linear Sig 8, Linear Sig 16 MSB, Linear Unsig 16 MSB), flowing (to the
  411. server, from the server, to the i/o, from the i/o), wave form
  412. generators (Square, Sine, Saw, Constant) and the capability of area
  413. broadcast using UDP.  Provision for manipulating data files
  414. (SND, WAV, VOC & AU) is also provided.
  415.  
  416. CD-I machines form a special category.  The following formats are used:
  417.  
  418.      - PCM 44.1 kHz standard CD format
  419.      - ADPCM - Addaptive Delta PCM
  420.        - Level A 37.8 kHz 8-bit
  421.        - Level B 37.8 kHz 4-bit
  422.        - Level C 18.9 kHz 4-bit
  423.  
  424.  
  425. File formats
  426. ------------
  427.  
  428. Historically, almost every type of machine used its own file format
  429. for audio data, but some file formats are more generally applicable,
  430. and in general it is possible to define conversions between almost any
  431. pair of file formats -- sometimes losing information, however.
  432.  
  433. File formats are a separate issue from device characteristics.  There
  434. are two types of file formats: self-describing formats, where the
  435. device parameters and encoding are made explicit in some form of
  436. header, and "raw" formats, where the device parameters and encoding
  437. are fixed.
  438.  
  439. Self-describing file formats generally define a family of data
  440. encodings, where a header fields indicates the particular encoding
  441. variant used.  Headerless formats define a single encoding and usually
  442. allows no variation in device parameters (except sometimes sampling
  443. rate, which can be a pain to figure out other than by listening to the
  444. sample).
  445.  
  446. The header of self-describing formats contains the parameters of the
  447. sampling device and sometimes other information (e.g. a
  448. human-readable description of the sound, or a copyright notice).  Most
  449. headers begin with a simple "magic word".  (Some formats do not simply
  450. define a header format, but may contain chunks of data intermingled
  451. with chunks of encoding info.)  The data encoding defines how the
  452. actual samples are stored in the file, e.g. signed or unsigned, as
  453. bytes or short integers, in little-endian or big-endian byte order,
  454. etc.  Strictly spoken, channel interleaving is also part of the
  455. encoding, although so far I have seen little variation in this area.
  456.  
  457. Some file formats apply some kind of compression to the data, e.g.
  458. Huffman encoding, or simple silence deletion.
  459.  
  460. Here's an overview of popular file formats.
  461.  
  462.         Self-describing file formats
  463.         ----------------------------
  464.  
  465. extension, name   origin          variable parameters (fixed; comments)
  466.  
  467. .au or .snd       NeXT, Sun       rate, #channels, encoding, info string
  468. .aif(f), AIFF     Apple, SGI      rate, #channels, sample width, lots of info
  469. .aif(f), AIFC     Apple, SGI      same (extension of AIFF with compression)
  470. .iff, IFF/8SVX    Amiga           rate, #channels, instrument info (8 bits)
  471. .voc              Soundblaster    rate (8 bits/1 ch; can use silence deletion)
  472. .wav, WAVE        Microsoft       rate, #channels, sample width, lots of info
  473. .sf               IRCAM           rate, #channels, encoding, info
  474. none, HCOM        Mac             rate (8 bits/1 ch; uses Huffman compression)
  475. none, MIME        Internet        (see below)
  476. none, NIST SPHERE DARPA speech community (see below)
  477. .mod or .nst      Amiga           (see below)
  478.  
  479. Note that the filename extension ".snd" is ambiguous: it can be either
  480. the self-describing NeXT format or the headerless Mac/PC format, or
  481. even a headerless Amiga format.
  482.  
  483. I know nothing for sure about the origin of HCOM files, only that
  484. there are a lot of them floating around on our system and probably at
  485. FTP sites over the world.  The filenames usually don't have a ".hcom"
  486. extension, but this is what SOX (see below) uses.  The file format
  487. recognized by SOX includes a MacBinary header, where the file
  488. type field is "FSSD".  The data fork begins with the magic word "HCOM"
  489. and contains Huffman compressed data; after decompression it it is 8
  490. bits unsigned data.
  491.  
  492. IFF/8SVX allows for amplitude contours for sounds (attack/decay/etc).
  493. Compression is optional (and extensible); volume is variable; author,
  494. notes and copyright properties; etc.
  495.  
  496. AIFF, AIFC and WAVE are similar in spirit but allow more freedom in
  497. encoding style (other than 8 bit/sample), amongst others.
  498.  
  499. There are other sound formats in use on Amiga by digitizers and music
  500. programs, such as IFF/SMUS.
  501.  
  502. Appendices describes the NeXT and VOC formats; pointers to more info
  503. about AIFF, AIFC, 8SVX and WAVE (which are too complex to describe
  504. here) are also in appendices.
  505.  
  506. DEC systems (e.g. DECstation 5000) use a variant of the NeXT format
  507. that uses little-endian encoding and has a different magic number
  508. (0x0064732E in little-endian encoding).
  509.  
  510. Standard file formats used in the CD-I world are IFF but on the disc
  511. they're in realtime files.
  512.  
  513. An interesting "interchange format" for audio data is described in the
  514. proposed Internet Standard "MIME", which describes a family of
  515. transport encodings and structuring devices for electronic mail.  This
  516. is an extensible format, and initially standardizes a type of audio
  517. data dubbed "audio/basic", which is 8-bit U-LAW data sampled at 8000
  518. samples/sec.
  519.  
  520. The "IRCAM" sound file system has now been superseded by the so-called
  521. "BICSF" (for Berkeley/IRCAM/CARL Sound File system) software release.
  522. More recently, there has been an effort at Princeton (Prof. Paul
  523. Lansky) and Stanford (Stephen Travis Pope) to standardize several
  524. extensions to BICSF.  A description of BICSF and the
  525. Princeton/Stanford extensions is available by anonymous ftp from
  526. ftp.cwi.nl [192.16.184.180], in directory /pub/audio/BICSF-info.  This
  527. file contains further ftp pointers to software.
  528.  
  529. A sound file format popular in the DARPA speech community is the NIST
  530. SPHERE standard.  The most recent version of the SPHERE package is
  531. available via anonymous ftp from jaguar.ncsl.nist.gov [129.6.48.157]
  532. in compressed tar form as "sphere-v.tar.Z" (where "v" is the version
  533. code).  The NIST SPHERE header is an object-oriented, 1024-byte
  534. blocked, ASCII structure which is prepended to the waveform data.  The
  535. header is composed of a fixed-format portion followed by an
  536. object-oriented variable portion.  I have placed a short description
  537. of NIST SPHERE on ftp.cwi.nl:/pub/audio/NIST-SPHERE.
  538.  
  539. Finally, a somewhat different but popular format are "MOD" files,
  540. usually with extension ".mod" or ".nst" (they can also have a prefix
  541. of "mod.").  This originated at the Amiga but players now exist for
  542. many platforms.  MOD files are music files containing 2 parts: (1) a
  543. bank of digitized samples; (2) sequencing information describing how
  544. and when to play the samples.  See the appendix "The Amiga MOD Format"
  545. for a description of this file format (and pointers to ftp'able
  546. players and example MOD files).
  547.  
  548.         Headerless file formats
  549.         -----------------------
  550.  
  551. extension       origin          parameters
  552. or name
  553.  
  554. .snd, .fssd     Mac, PC         variable rate, 1 channel, 8 bits unsigned
  555. .ul             US telephony    8 k, 1 channel, 8 bit "U-LAW" encoding
  556. .snd?           Amiga           variable rate, 1 channel, 8 bits signed
  557.  
  558. It is usually easy to distinguish 8-bit signed formats from unsigned
  559. by looking at the beginning of the data with 'od -b <file | head';
  560. since most sounds start with a little bit of silence containing small
  561. amounts of background noise, the signed formats will have an abundance
  562. of bytes with values 0376, 0377, 0, 1, 2, while the unsigned formats
  563. will have 0176, 0177, 0200, 0201, 0202 instead.  (Using "od -c" will
  564. also show any headers that are tacked in front of the file.)
  565.  
  566. The Apple IIgs records raw data in the same format as the Mac, but
  567. uses a 0 byte as a terminator; samples with value 0 are replaced by 1.
  568.  
  569.         Sound formats and the Apple Macintosh
  570.         -------------------------------------
  571.  
  572. (Thanks to Bill Houle, <Bill.Houle@SanDiegoCA.NCR.COM>)
  573.  
  574.                              SOX/DOS   MAC
  575. Sound Format           file ext  type  Mac program to convert to 'snd'
  576. ---------------------- --------  ----  -------------------------------
  577. Mac snd                .snd      sfil  [n/a]
  578. Amiga IFF/8SVX         .iff            AmigaSndConverter, BST
  579. Amiga SoundTracker     .mod      STrk  ModVoicer
  580. Audio IFF              .aiff     AIFF  SoundExtractor, Sample Editor,
  581.                                        UUTool, BST, M5Mac
  582. DSP Designer                     DSPs  SoundHack
  583. IRCAM                  .sf       IRCM  SoundHack
  584. MacMix                           MSND  SoundHack
  585. RIFF WAVE              .wav            SoundExtractor, BST, Balthazar
  586. SoundBlaster           .voc            SoundExtractor, BST
  587. SoundDesigner/AudioMedia         Sd2f  SoundHack
  588. Sound[Edit|Cap|Wave]   .hcom     FSSD  SoundExtractor, SoundEdit,
  589.                                        Wavicle, BST
  590. Sun uLaw/Next .snd     .au/.snd  NxTS  SoundExtractor, SoundHack,
  591.                                        au<->snd, UUTool, BST
  592.  
  593.  
  594. File conversions
  595. ----------------
  596.  
  597.         SOX (UNIX, PC, Amiga)
  598.         ---------------------
  599.  
  600. The most versatile tool for converting between various audio formats
  601. is SOX ("Sound Exchange").  It can read and write various types of
  602. audio files, and optionally applies some special effects (e.g. echo,
  603. channel averaging, or rate conversion).
  604.  
  605. SOX recognizes all filename extensions listed above except ".snd",
  606. which would be ambiguous anyway, and ".wav" (but there's a patch, see
  607. below).  Use type ".au" for NeXT ".snd" files.  Mac and PC ".snd"
  608. files are completely described by these parameters:
  609.  
  610.         -t raw -b -u -r 11000
  611.  
  612. (or -r 22000 or -r 7333 or -r 5500; 11000 seems to be the most common
  613. rate).
  614.  
  615. The source for SOX, version 6, platchlevel 8, was posted to
  616. alt.sources, and should be widely archived.  (Patch 9 was posted later
  617. and incporporates some important .wav fixes.)  To save you the trouble
  618. of hunting it down, it can be gotten by anonymous ftp from
  619. wuarchive.wustl.edu, in the directory usenet/alt.sources/articles,
  620. files 7288.Z through 7295.Z.  (These files are compressed news
  621. articles containing shar files, if you hadn't guessed.)  I am sure
  622. many sites have similar archives, I'm just listing one that I know of
  623. and which carries a lot of this kind of stuff.  (Also see the appendix
  624. if you don't have Internet access.)
  625.  
  626. A compressed tar file containing the same version of SOX is available
  627. by anonymous ftp from ftp.cwi.nl [192.16.184.180], in directory
  628. /pub/audio/sox7.tar.Z.  You may be able to locate a nearer version
  629. using archie!
  630.  
  631. Ports of SOX:
  632.  
  633. - The source as posted should compile on any UNIX and PC system.
  634.  
  635. - A PC version is available by ftp from ftp.cwi.nl (see above) as
  636.   pub/audio/sox5dos.zip; also available from the garbo mail server.
  637.  
  638. - The latest Amiga SOX is available via anonymous ftp to
  639.   wuarchive.wustl.edu, files systems/amiga/audio/utils/amisox*.  (See
  640.   below for a non-SOX solution.)
  641.   The final release of r6 will compile as distributed on the Amiga with
  642.   SAS/C version 6.  Binaries (since many Amiga users do not own
  643.   compilers) will continue to be available for FTP.
  644.  
  645. SOX usage hints:
  646.  
  647. - Often, the filename extension of sound files posted on the net is
  648.   wrong.  Don't give up, try a few other possibilities using the
  649.   "-t <type>" option.  Remember that the most common file type is
  650.   unsigned bytes, which can be indicated with "-t ub".  You'll have to
  651.   guess the proper sampling rate, but often it's 11k or 22k.
  652.  
  653. - In particular, with SOX version 4 (or earlier), you have to
  654.   specify "-t 8svx" for files with an .iff extension.
  655.  
  656. - When converting linear samples to U-LAW using the .au type for the
  657.   output file, you must specify "-U" for the output file, otherwise
  658.   you will end up with a file containing a NeXT/Sun header but linear
  659.   samples -- only the NeXT will play such files correctly.  Also, you
  660.   must explicitly specify an output sampling rate with "-r 8000".
  661.   (This may seem fixed for most cases in version 5, but it is still
  662.   occasionally necessary, so I'm keeping this warning in.)
  663.  
  664.         Sun Sparc
  665.         ---------
  666.  
  667. On Sun Sparcs, starting at SunOS 4.1, a program "raw2audio" is
  668. provided by Sun (in /usr/demo/SOUND -- see below) which takes a raw
  669. U-LAW file and turns it into a ".au" file by prefixing it with an
  670. appropriate header.
  671.  
  672.         NeXT
  673.         ----
  674.  
  675. On NeXTs, you can usually rename .au files to .snd and it'll work like
  676. a charm, but some .au files lack header info that the NeXT needs.
  677. This can be fixed by using sndconvert:
  678.  
  679.         sndconvert -c 1 -f 1 -s 8012.8210513 -o nextfile.snd sunfile.au
  680.  
  681.         SGI Indigo, Indigo2, Indy and Personal IRIS
  682.         -------------------------------------------
  683.  
  684. SGI supports "soundfiler" (in /usr/sbin), a program similar in
  685. spirit to SOX but with a GUI.  Soundfiler plays aiff, aifc, NeXT/Sun
  686. and .wav formats.  It can do conversions between any of these formats
  687. and to and from raw formats including mulaw.  It also does sample rate
  688. conversions.
  689.  
  690. Three shell commands are also provided that give the same functionality:
  691. "sfplay", "sfconvert", and "aifcresample" (all in /usr/sbin).
  692.  
  693.         Amiga
  694.         -----
  695.  
  696. Mike Cramer's SoundZAP can do no effects except rate change and it
  697. only does conversions to IFF, but it is generally much faster than
  698. SOX.  (Ftp'able from the same directory as amisox above.)
  699.  
  700. Newer versions of OmniPlay (see below) will also convert to IFF.
  701.  
  702.         Tandy
  703.         -----
  704.  
  705. The Tandy 1000 uses a (proprietary?) compressed format.  There is a PD
  706. Mac to Tandy conversion program called CONVERT.  Leonard Erickson
  707. <leonard@qiclab.scn.rain.com> writes: There is a WAV driver from Tandy
  708. if people ask.  There also appears to be a program that purports to
  709. convert other formats to Tandy, but I haven't tested this one yet.
  710.  
  711.         Apple Macintosh
  712.         ---------------
  713.  
  714. Bill Houle sent the following list:
  715.  
  716. Popular commercial apps are indicated with a [*].  All other programs
  717. mentioned are shareware/freeware available from SUMEX and the various
  718. mirror sites, or check archie for the nearest FTP location.
  719.  
  720. MAC SOUND CONVERSION PROGRAMS
  721.  
  722. SoundHack [Tom Erbe, tom@mills.edu]
  723.   Can read/write Sound Designer II, Audio IFF, IRCAM, DSP Designer and NeXT 
  724.   .snd (or Sun .au); 8-bit uLaw, 8-bit linear, 32-bit floating point and 16-bit
  725.   linear data encoding.  Can read (but not write) raw data files.  Implements
  726.   soundfile convolution, a phase vocoder, a binaural filter and an amplitude 
  727.   analysis & gain change module.
  728.  
  729. SoundExtractor [Alberto Ricci, FRicci@polito.it]
  730.   Extracts 'snd' resources, AIFF, SoundEdit, VOC, and WAV data from
  731.   practically anything, converting to 'snd' files.
  732.  
  733. Balthazar [Craig Marciniak, AOL:TemplarDev]
  734.   Converts WAV files to 'snd'.
  735.   
  736. Brian's Sound Tool [Brian Scott, bscott@ironbark.ucnv.edu.au]
  737.   Converts 'snd' or SoundEdit to WAV.  Can also convert WAV, VOC, AIFF, Amiga
  738.   8SVX and uLaw to 'snd'.
  739.  
  740. AmigaSndConverter [Povl H. Pederson, eco861771@ecostat.aau.dk]
  741.   Converts Amiga IFF/8SVX to Mac 'snd'.
  742.  
  743. au<->Mac [Victor J. Heinz, vic:wbst128@xerox.com]
  744.   Converts Sun uLaw to Mac 'snd'.
  745.   
  746. ULAW [Rod Kennedy, rod@faceng.anu.edu.au]
  747.   Converts 'snd' to Sun uLaw.
  748.  
  749. UUTool [Bernie Wieser, wieser@acs.ucalgary.ca]
  750.   Primarily a uuencode/decode program, but in true Swiss Army Knife
  751.   fashion can also read/write Sun uLaw, AIFF, and 'snd' files.
  752.  
  753. ModVoicer [Kip Walker, Kip_Walker@mcimail.com]
  754.   Converts Amiga MOD voices into SoundEdit files or 'snd' resources.
  755.  
  756. Music 5 Mac [Simone Bettini, space@maya.dei.unipd.it]
  757.   Primarily a Music Synthesis system, but can also convert between 'snd', AIFF,
  758.   and IBM .DAT(?).
  759.  
  760. See also the section on players -- some players also do conversions.
  761.  
  762.  
  763. Playing audio files on UNIX
  764. ---------------------------
  765.  
  766. The commands needed to play an audio file depend on the file format
  767. and the available hardware and software.  Most systems can only
  768. directly play sound in their native format; use a conversion program
  769. (see above) to play other formats.
  770.  
  771.         Sun Sparcstation running SunOS 4.x
  772.         ----------------------------------
  773.  
  774. Raw U-LAW files can be played using "cat file >/dev/audio".
  775.  
  776. A whole package for dealing with ".au" files is provided by Sun on an
  777. experimental basis, in /usr/demo/SOUND.  You may have to compile the
  778. programs first.  (If you can't find this directory, either you are not
  779. running SunOS 4.1 yet, or your system administrator hasn't installed
  780. it -- go ask him for it, not me!)  The program "play" in this
  781. directory recognizes all files in Sun/NeXT format, but a SS 1 or 2 can
  782. play only those using U-LAW encoding at 8 k -- the SS 10 hardware
  783. plays other encodings, too.
  784.  
  785. If you ca't find "play", you can also cat a ".au" file to /dev/audio,
  786. if it uses U-LAW; the header will sound like a short burst of noise
  787. but the rest of the data will sound OK (really, the only difference in
  788. this case between raw U-LAW and ".au" files is the header; the U-LAW
  789. data is exactly the same).
  790.  
  791. Finally, OpenWindows 3.0 has a full-fledged audio tool.  You can drop
  792. audio file icons into it, edit them, etc.
  793.  
  794.         Sun Sparcstation running Solaris 2.0
  795.         ------------------------------------
  796.  
  797. Under SVR4 (and hence Solaris 2.0), writing to /dev/audio from the
  798. shell is a bad idea, because the device driver will flush its queue as
  799. soon as the file is closed.  Use "audioplay" instead.  The supported
  800. formats and sampling rates are the same as above.
  801.  
  802.         NeXT
  803.         ----
  804.  
  805. On NeXT machines, the standard "sndplay" program can play all NeXT
  806. format files (this include Sun ".au" files).  It supports at least
  807. U-LAW at 8 k and 16 bits samples at 22 or 44.1 k.  It attempts
  808. on-the-fly conversions for other formats.
  809.  
  810. Sound files are also played if you double-click on them in the file
  811. browser.
  812.  
  813.         SGI Indigo, Indigo2, Indy and Personal IRIS
  814.         -------------------------------------------
  815.  
  816. On SGI Indigo, Indigo2, Indy and the 4D/30 and /35 Personal IRIS workstations,
  817. "WorkSpace" plays audio files in .aiff, .aifc, .au, and .wav formats if
  818. you double click them and the sampling rate is one of 8000, 11025,
  819. 16000, 22050, 32000, 44100, or 48000.  On the Personal IRIS, you need
  820. to have the audio board installed (check the output from hinv) and you
  821. must run IRIX 3.3.2 or 4.0 or higher.  These files can also be played
  822. with "soundfiler" and "sfplay".  ".aiff" and ".aifc" files at the above
  823. sampling rates can also be played with playaifc.  (All in /usr/sbin)
  824.  
  825. There is no simple /dev/audio interface on these SGI machines.  (There
  826. was one on 4D/25 machines, reading and writing signed linear 8-bit
  827. samples at rates of 8, 16 and 32 k.)
  828.  
  829. A program "playulaw" was posted as part of the "radio 2.0" release
  830. that I posted to several source groups; it plays raw U-LAW files on
  831. the Indigo, Indigo2, Indy or Personal IRIS audio hardware.
  832.  
  833.         Sony NEWS
  834.         ---------
  835.  
  836. The whole current Sony NEWS line (laptop, desktop, server) have
  837. builtin sound capabilities.  You can buy an external board for the
  838. older NEWS machines.  In the default mode (8k/8-bit mulaw), Sun .au
  839. files are directly supported (you can 'cat' .au files to /dev/sb0 and
  840. have them play.)  The /usr/sony/bin/sbplay command on NEWS-OS 6.0
  841. also supports Sun .au files.
  842.  
  843.         Others
  844.         ------
  845.  
  846. Most other UNIX boxes don't have audio hardware and thus can't play
  847. audio data.  This is actually rapidly changing and most new hardware
  848. that hits the market has some form of audio support.  Unfortunately
  849. there is no single portable interface for audio that comes near the
  850. acceptance and functionality (let alone code size :-) of X11 for
  851. graphics.  There are at least two network-transparent packages, both
  852. in some way based on the X11 architecture, that attempt to fillo the
  853. gap:
  854.  
  855. DEC CRL's AudioFile supports Digital RISC systems running Ultrix,
  856. Digital Alpha AXP systems running OSF/1, Sun Sparcs, and SGI
  857. AL-capable systems (e.g., Indigo, Indy).  The source kit is located at
  858. ftp site crl.dec.com [192.58.206.2] in /pub/DEC/AF.
  859.  
  860. NCD's NetAudio supports NCD's MCX line of X terminals as well as
  861. Sparcs running either SunOS 4.1.3 or Solaris 2.2, using the /dev/audio
  862. interface (they claim it should be easy to port).  The source it
  863. located at ftp.x.org [198.112.44.100] in contrib/netaudio.  It is also
  864. ported to SGI (tested on IRIX 5.x), and there are unconfirmed rumors
  865. that it is being ported to SCI and Linux.
  866.  
  867.  
  868. Playing audio files on the Vaxstation 4000 (VMS)
  869. ------------------------------------------------
  870.  
  871. 1) Without DECsound
  872.  
  873. ".au" files can be played by COPYING them to device "SOA0:".  This
  874. device is set up by enabling the driver SODRIVER.  You can use the
  875. following command file:
  876.  
  877. $!---------------- cut here -------------------------------
  878. $! sound_setup.com    enable SOUND driver
  879. $ run sys$system:sysgen
  880. connect soa0 /adapter=0 /csr=%x0e00 /vector=%o304 /driver=sodriver
  881. exit
  882. $ exit
  883. $!----------------- cut here ------------------------------------
  884.  
  885. 2) With DECsound (bundled with motif)
  886.  
  887. Just start DECsound by selecting it from the session manager in the 
  888. applications menu. (Not there use "@vue$library:sound$vue_startup").
  889. Make sure settings; device type (vaxstation 4000) and play settings
  890. (headphone jack) are selected.  To play files from the DCL prompt 
  891. (handy if you want to play sounds on a remote workstation) set a 
  892. symbol up as follows; 
  893. PLAY == "$DECSOUND -VOLUME 50 -PLAY"
  894. usage;
  895. DCL> play sound.au
  896.  
  897. 3) Audio port
  898.  
  899. The external audio port comes with a telephone-jack-like port.   For
  900. starters, you can plug a telephone RECEIVER right into this port to
  901. hear your first sound files.   After that, you can use the adapter
  902. (that came with the VaxStation), and plug in a small set of stereo
  903. speakers or headphones (the kind you'd plug into a WALKMAN, for 
  904. example), for more volume.  The adapter also has a microphone plug so
  905. that you can record sounds if DECsound is installed.
  906.  
  907.  
  908. Playing audio files on micros
  909. -----------------------------
  910.  
  911. Most micros have at least a speaker built in, so theoretically all you
  912. need is the right software.  Unfortunately most systems don't come
  913. bundled with sound-playing software, so there are many public domain
  914. or shareware software packages, each with their own bugs and features.
  915. Most separate sound recording hardware also comes with playing
  916. software, most of which can play sound (in the file format used by
  917. that hardware) even on machines that don't have that hardware
  918. installed.
  919.  
  920.         PC or compatible
  921.         ----------------
  922.  
  923. Chris S. Craig announces the following software for PCs:
  924.  
  925. ScopeTrax       This is a complete PC sound player/editor package.  Sounds
  926.                 can be played back at ANY rate between 1kHz to 65kHz through
  927.                 the PC speaker or the Sound Blaster.  It supports several
  928.                 file formats including VOC, IFF/8SVX, raw signed and raw
  929.                 unsigned.  A separate executable is provided to convert
  930.                 .au and mu-law to raw format.  ScopeTrax requires EGA/VGA
  931.                 graphics for editing and displaying sounds on a REALTIME
  932.                 oscilloscope.  The package also includes:
  933.                       * An expanded memory player which can play sounds
  934.                         larger than 640K in size.
  935.                       * Basic (rough) sound compression/uncompression
  936.                         utilities.
  937.                       * Complete documentation.
  938.                 The package is FREEWARE!  It is available on SIMTEL in the
  939.                 PD1:[MSDOS.SOUND] directory.
  940.  
  941. One of the appendices below contains a list of more programs to play
  942. sound on the PC.
  943.  
  944.         Atari
  945.         -----
  946.  
  947. For sounds on Atari STs - programs are in the atari/sound/players
  948. directory on atari.archive.umich.edu (141.211.164.8).
  949.  
  950.         Tandy
  951.         -----
  952.  
  953. On a Tandy 1000, sounds can be played and recorded with DeskMate Sound
  954. (SOUND.PDM), or if they not stored in compressed format, they can also
  955. be played be a program called PLAYSND.  No indication of whether
  956. PLAYSND is PD or not. It hasn't been updated since March of 89.
  957.  
  958.         Amiga
  959.         -----
  960.  
  961. On the Amiga, OmniPlay by David Champion <dgc3@midway.uchicago.edu>
  962. plays and converts IFF-8SVX, AIFF, WAV, VOC, .au, .snd, and 8 bit raw
  963. (signed, unsigned, u-law) samples.  As of version 1.23, OmniPlay will
  964. also convert any playable sample to 8SVX.  Files: wuarchive.wustl.edu
  965. in /systems/amiga/audio/sampleplayers/oplay123.lha (?)
  966. amiga.physik.unizh.ch in mus/play/oplay123.lha
  967.  
  968.         Apple Macintosh
  969.         ---------------
  970.  
  971. Malcolm Slaney from Apple writes:
  972.  
  973.  "We do have tools to play sound back on most of our Unix hosts.  We wrote
  974.  a program called TcpPlay that lets us read a sound file on a Unix host,
  975.  open a TCP/IP connection to the Mac on my desk, and plays the file.  We
  976.  think of it as X windows for sound (at least a step in that direction.)
  977.  
  978.  This software is available for anonymous FTP from ftp.apple.com
  979.  [IP address 130.43.2.3 -- Guido].
  980.  Look for  ~ftp/pub/TcpPlay/TcpPlay.sit.hqx.
  981.  
  982.  Finally, there are MANY tools for working with sound on the Macintosh. Three
  983.  applications that come to mind immediately are SoundEdit (formerly by
  984.  Farralon and now by MacroMind/Paracomp), Alchemy and Eric Keller's Signalyze.
  985.  There are lots of other tools available for sound editing (including some
  986.  of the QuickTime Movie tools.)"
  987.  
  988. Bill Houle sent the following lists:
  989.  
  990. Popular commercial apps are indicated with a [*].  All other programs
  991. mentioned are shareware/freeware available from SUMEX and the various
  992. mirror sites, or check archie for the nearest FTP location.
  993.  
  994. MAC SOUND EDITORS
  995.  
  996. Sample Editor [Garrick McFarlane, McFarlaneGA@Kirk.Vax.Aston.Ac.UK]
  997.   Plays AIFF and 'snd' sounds.  Can convert between AIFF and 'snd'.
  998.   Can record from built-in mic.  Can add effects such as fade,
  999.   normalize, delay, etc.
  1000.  
  1001. Wavicle [Lee Fyock]
  1002.   Plays SoundEdit files.  Can convert to 'snd'.  Can record from built-in mic.
  1003.   Can add effects such as fade, filter, reverb, etc.
  1004.  
  1005. [*]SoundEdit/SoundEdit Pro [Farallon/MacroMind*Paracomp]
  1006.   Plays SoundEdit and 'snd' sounds.  Can read/write SoundEdit files and 'snd' 
  1007.   sounds.  Can record from built-in mic.  Can add effects such as
  1008.   echo, filter, reverb, etc.
  1009.  
  1010.  
  1011. MAC SOUND PLAYERS
  1012.  
  1013. Sound-Tracker  [Frank Seide]
  1014.   Plays Amiga SoundTracker files in foreground or background.
  1015.  
  1016. Macintosh Tracker [Thomas R. Lawrance, tomlaw@world.std.com]
  1017.   Plays Amiga SoundTracker files in foreground or background. A port of Marc
  1018.   Espie's Unix Tracker version with Frank Seide's core player thrown in for
  1019.   good measure.
  1020.  
  1021. The Player [Antoine Rosset & Mike Venturi]
  1022.   Plays AIFF, SoundEdit, MOD, and 'snd' files.
  1023.  
  1024. SoundMaster (aka [*]Kaboom!) [Bruce Tomlin]
  1025.   Associates SoundEdit files to MacOS events.
  1026.  
  1027. SndControl [Riccardo Ettore, 72277.1344@compuserve.com]
  1028.   Associates 'snd' sounds to MacOS events.
  1029.  
  1030. Canon 2 [Glenn Anderson, glenn@otago.ac.nz; Jeff Home, jeff@otago.ac.nz]
  1031.   Plays AIFF or 'snd' files in foreground or background.
  1032.  
  1033. Another Mac play/convert program: "It's called SoundApp. I wrote it,
  1034. (franke1@llnl.gov) and it's FreeWare. It will play: SoundCap,
  1035. SoundEdit, WAVE, VOC, MOD, Amiga IFF (8SVX), Sound Designer, AIFF, AU,
  1036. Mac Resource, and DVI ADPCM. It can convert all the above to System 7
  1037. sound resources (except MOD where just the samples are extracted.) And
  1038. it will double buffer."
  1039.  
  1040.  
  1041. The Sound Site Newsletter
  1042. -------------------------
  1043.  
  1044. An electronic publication with lots of info about digitised sound and
  1045. sound formats, albeit mostly on PCs, is "The Sound Site Newsletter",
  1046. maintained by David Komatsu <davek@uhunix.uhcc.hawaii.edu>.
  1047. Issue 14 appeared in July 1993.  As of that issue, the Sound Site
  1048. Newsletter has expanded its charter to include commercial products and
  1049. will appear monthly.  There is now also a sound site network of ftp
  1050. servers, bulletin boards and authors.  The Sound Site Newsletter (once
  1051. again!) has its own ftp site: sound.usach.cl.
  1052.  
  1053. The Sound Newsletter is posted to: comp.sys.ibm.pc.soundcard
  1054.                                    comp.sys.ibm.pc.misc
  1055.                                    rec.games.misc
  1056. FTP: oak.oakland.edu (misc/sound)
  1057.      garbo.uwasa.fi (pc/sound)
  1058.      sound.usach.cl (pub/Sound/Newsltr) [Home Base]
  1059.  
  1060.  
  1061. Posting sounds
  1062. --------------
  1063.  
  1064. The newsgroup alt.binaries.sounds.misc is dedicated to postings
  1065. containing sound.  (Discussions related to such postings belong in
  1066. alt.binaries.sounds.d.)
  1067.  
  1068. There is no set standard for posting sounds; uuencoded files in most
  1069. popular formats are welcome, if split in parts under 50 kBytes.  To
  1070. accomodate automatic decoding software (such as the ":decode" command
  1071. of the nn newsreader), please place a part indicator of the form
  1072. (mm/nn) at the end of your subject meaning this is number mm of a
  1073. total of nn part.
  1074.  
  1075. It is recommended to post sounds in the format that was used for the
  1076. original recording; conversions to other formats often lose
  1077. information and would do people with identical hardware as the poster
  1078. no favor.  For instance, convering 8-bit linear sound to U-LAW loses
  1079. the lower few bits of the data, and rate changing conversions almost
  1080. always add noise.  Converting from U-LAW to linear requires expansion
  1081. to 16 bit samples if no information loss is allowed!
  1082.  
  1083. U-LAW data is best posted with a NeXT/Sun header.
  1084.  
  1085. If you have to post a file in a headerless format (usually 8-bit
  1086. linear, like ".snd"), please add a description giving at least the
  1087. sampling rate and whether the bytes are signed (zero at 0) or unsigned
  1088. (zero at 0200).  However, it is highly recommended to add a header
  1089. that indicates the sampling rate and encoding scheme; if necessary you
  1090. can use SOX to add a header of your choice to raw data.
  1091.  
  1092. Compression of sound files usually isn't worth it; the standard
  1093. "compress" algorithm doesn't save much when applied to sound data
  1094. (typically at most 10-20 percent), and compression algorithms
  1095. specifically designed for sound (e.g. NeXT's) are usually
  1096. proprietary.  (See also the section "Compression schemes" earlier.)
  1097.